package service.impl;

import java.util.List;

import dao.CustomerDao;
import dao.impl.CustomerDaoImpl;
import pojo.Customer;
import service.CustomerManager;

///Customer 业务实现类
public class CustomerManagerImpl implements CustomerManager{

	private CustomerDao dao = new CustomerDaoImpl();
	
	@Override
	public int addCustomer(Customer c) {
		return dao.addCustomer(c);
	}

	@Override
	public List<Customer> findAllCustomers() {
		return dao.findAllCustomers();
	}

	@Override
	public int deleteCustomer(Integer cid) {
		return dao.deleteCustomer(cid);
	}

	@Override
	public int updateCustomer(Customer c) {
		return dao.updateCustomer(c);
	}

	@Override
	public Customer searchCustomer(Integer cid) {
		return dao.searchCustomer(cid);
	}

}
